package cn.java63.printer;

public class Printer {
    private String name;
    private int price;
    private Ink ink;
    private Page page;

    public void print(String s){
        System.out.println("价格为"+price+"元的"+name+"正在打印：");
        System.out.println("使用墨水是"+ink.getColor());
        page.print(s);
    }
    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public void setPage(Page page) {
        this.page = page;
    }
}
